/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm_transaccion;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class TransaccionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression id_transaccion;
	public final StringExpression nombre;
	
	public TransaccionDetachedCriteria() {
		super(orm_transaccion.Transaccion.class, orm_transaccion.TransaccionCriteria.class);
		id_transaccion = new IntegerExpression("id_transaccion", this.getDetachedCriteria());
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
	}
	
	public TransaccionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm_transaccion.TransaccionCriteria.class);
		id_transaccion = new IntegerExpression("id_transaccion", this.getDetachedCriteria());
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
	}
	
	public Transaccion uniqueTransaccion(PersistentSession session) {
		return (Transaccion) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Transaccion[] listTransaccion(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Transaccion[]) list.toArray(new Transaccion[list.size()]);
	}
}

